
//配置数据
const state = {
  appState:'settingState',
  userName:'',
};

const mutations = {
  SET_USERNAME: (state, userName) => {
    state.userName = userName;
  }
};

const actions = {
  login({ commit }, userInfo) {
    commit('SET_USERNAME', userInfo);
  }
};



export default {
  namespaced: true,
  state,
  mutations,
  actions
}